import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import upload from '@/components/upload'
import ddanlist from '@/components/ddanlist'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/upload',
      name: 'upload',
      component: upload
    },{
      path: '/ddanlist',
      name: 'ddanlist',
      component: ddanlist
    },
  ]
})
// export default new Router({
//   routes:routes,
//   mode:'history'   /*hash*/
// })
